<template><!-- 专栏弹出层 -->
  <div class="special-column">
    <div class="header">
      <div class="title">专栏</div>
    </div>
    <ul class="goods-list">
      <li class="goods-item" v-for="(item, index) in columnData" :key="index" @click="toColumn(item)">
        <div class="left">
          <img :src="item.pictureUrl" alt="">
          <!-- <div class="corner-mark">
            <div class="icon" />
            <div class="number">35</div>
          </div> -->
        </div>
        <div class="right">
          <div class="text">{{item.briefIntroduction}}</div>
          <div class="time">更新时间：{{handTime('2023-10-18 09:20:15')}}</div>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
  export default {
    props: {
      columnData: Array,
    },
    data() {
      return {

      }
    },
    created() {
    },
    methods: {
      handTime(e) {
        return e.split(' ')[0];
      },
      toColumn(item) {
        const params = {
          path: '/zxjt/publicSelection',
          query: {
            laneId: item.laneId,
            tabId: item.tabId,
            dzhPage: 'true'
          }
        }
        this.colDotClick(item.tabName)
        this.$router.push(params);
      },
      //点击专栏打点（具体哪个专栏）
      colDotClick(columnName) {
        $sensorsTrack('financing_videoZoneColumnClick', {
          page_name: '视频详情页',
          column_name: columnName,
        });
      }
    },
  }
</script>

<style scoped lang="less">
  .special-column {
    height: 646px;
    overflow: hidden;

    .header {
      width: 100%;
      height: 60px;
      border-bottom: 1px solid #F1F2F5;
      display: flex;
      justify-content: center;

      .title {
        height: 45px;
        margin-top: 11px;
        font-size: 32px;
        font-family: PingFangSC, PingFang SC;
        font-weight: 600;
        color: #5E6678;
        line-height: 45px;
        letter-spacing: 1px;
      }
    }

    .goods-list {
      height: calc(100% - 60px);
      padding: 0 24px;
      overflow: scroll;

      .goods-item {
        width: 100%;
        height: 160px;
        margin-top: 20px;
        display: flex;

        .left {
          width: 255px;
          height: 160px;
          overflow: hidden;
          background: linear-gradient(225deg, #AE4EF2 0%, #F048B3 100%);
          border-radius: 16px;
          position: relative;

          img {
            width: 255px;
            height: 160px;
          }

          .corner-mark {
            min-width: 80px;
            max-width: 100px;
            height: 42px;
            padding: 0 6px;
            background: #33333369;
            border-radius: 8px 0px 16px 0px;
            position: absolute;
            right: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: center;

            .icon {
              width: 30px;
              height: 23px;
              background-image: url('../../../../../assets/images/pureVideo/video.png');
              background-repeat: no-repeat;
              background-size: 100%;
            }

            .number {
              height: 28px;
              margin-left: 8px;
              font-size: 20px;
              font-family: PingFangSC, PingFang SC;
              font-weight: 500;
              color: #FFFFFF;
              line-height: 28px;
            }
          }
        }

        .right {
          width: 433px;
          margin-left: 14px;
          display: flex;
          flex-direction: column;
          justify-content: space-between;

          .text {
            width: 100%;
            height: 80px;
            font-size: 28px;
            font-family: PingFangSC, PingFang SC;
            font-weight: 600;
            color: #262E40;
            line-height: 40px;

          }

          .time {
            width: 100%;
            height: 37px;
            font-size: 26px;
            font-family: PingFangSC, PingFang SC;
            font-weight: 400;
            color: #9AA2B3;
            line-height: 37px;
          }
        }
      }

    }
  }
</style>